<template>
	<view class="content">
		<view class="item" v-for="item,index in rechargeList">
			<view class="item-title">
				<text>
					类型：{{item.name}}
				</text>
				<text>
					充值金额：{{item.amount}}
				</text>
				<text class="white">
					{{item.date}}
				</text>
			</view>
			<view class="item-body">
				<text class="huang" v-if="item.status == 2">
					【充值成功】
				</text>
				<text class="red" v-if="item.status == 1">
					【充值失败】
				</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				rechargeList:[
					{
						name:'系统充值投资钱包',
						date:'2025/2/12 17:47:14',
						status:2,
						amount:'117.00',
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	page{
		background: #f4f4f4;
	}
	
	.content{
		margin-top: .7rem;
		display: flex;
		justify-content: center;
		flex-direction: column;
		font-size: .7rem;
	}
	
	.item{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1rem;
		background: white;
		border-bottom: 1px solid #f6f6f6 !important;
	}
	
	.item-title{
		// width: 40%;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.item-title>text{
		padding: .2rem;
	}
	
	.item-body{
		display: flex;
		flex-direction: column;
	}
	
	.red{
		color: #fe0000 !important;
		font-weight: bold;
	}
	.huang{
		color:#FF9000;
		background: #FEF5EA;
	}
	
	.white{
		color: #90949E;
	}
</style>
